﻿using System;

namespace SmartMotion.Core.Mgrs
{
    /// <summary>
    /// 描述一个变量
    /// </summary>
    public class VarInfo
    {
        /// <summary>
        /// 变量名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 变量分组
        /// </summary>
        public string Group { get; set; }

        /// <summary>
        /// 变量类型
        /// </summary>

        public string Type { get; set; }

        /// <summary>
        /// 初始值
        /// </summary>
        public dynamic InitValue { get; set; }

        /// <summary>
        /// 变量的值
        /// </summary>
        public dynamic Value { get; set; }

        /// <summary>
        /// 变量最小值
        /// </summary>
        public dynamic Min { get; set; }

        /// <summary>
        /// 变量最大值
        /// </summary>
        public dynamic Max { get; set; }

        /// <summary>
        /// 编辑权限
        /// </summary>
        public int EditPermission { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 变量的GUID
        /// </summary>
        public string VarID { get; set; } = Guid.NewGuid().ToString();
    }
}